<? include_once('transl.php'); $splitted_transl=split_transl(__FILE__);?>
<? include_once('artikul.php'); //загрузка артикулов?>
<? //$langchoosed="RUS" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><? echo (transl_takestring($splitted_transl, "Производственные показатели нетто",$langchoosed));?></title>
</head>

<?//------------------------------------------?>
<body bgcolor="#CCCCCC">
<?//------------------------------------------?>
<script language="javascript" src="dynaddline.js">//скрипт для динамического добавления строчек</script>
<script language="javascript" src="matematika.js"></script>
<span id="shapka">
<table>
	<tr align="center">
	    <td colspan="5"><h1><? echo (transl_takestring($splitted_transl, "Производственные показатели нетто",$langchoosed));?></h1></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Предприятие:",$langchoosed));?></td>
        <td><input name="fab_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><input name="fab_name_inputfield" type="text" value="KNAUF GIPS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><? echo (transl_takestring($splitted_transl, "Дата:",$langchoosed));?></td>
        <td><input name="date_inputfield" type="text" value="3.12.2004" size="12" readonly="readonly" style="background-color:#66FFCC" /></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Ресурсы:",$langchoosed));?></td>
        <td><input name="res_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
      <td><input name="res_name_inputfield" type="text" value="BS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><? echo (transl_takestring($splitted_transl, "Смена:",$langchoosed));?></td>
        <td><input name="smena_inputfield" type="text" value="2" size="12" readonly="readonly" style="background-color:#66FFCC"/></td>
    </tr>
</table>
</span>
<br />
<span id="table">
<table border="1">
<tr>
    	<td><? echo (transl_takestring($splitted_transl, "№ арт.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Наименование",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Ширина",$langchoosed));?></td>
    <td><? echo (transl_takestring($splitted_transl, "Длина",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Кромка",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Склад",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Лабор.",$langchoosed));?></td>
        <td><a href="#" onclick="return addline();"><? echo (transl_takestring($splitted_transl, "Добавить",$langchoosed));?></a></td>
    </tr>
    <tr id="newline" nomer="[0]">
    	<td><select name="art_nom_selectfield[0]" onchange="redraw_universal('art_nom_selectfield','art_desc_selectfield')">
    			<? 	
					$i=1;
					$ar=loaddescr('artikul.txt');
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						echo('<option value="'.$element[1]->nom.'">'.$element[1]->nom.'</option>');
					}
				?>
        	</select>
        </td>
        <td><select name="art_desc_selectfield[0]" onchange="redraw_universal('art_desc_selectfield','art_nom_selectfield');">
    			<? 	
					$i=1;
					$ar=loaddescr('artikul.txt');
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						if ($langchoosed="RUS") echo('<option value="'.$element[1]->nom.'">'.$element[1]->rus.'</option>');
						else if ($langchoosed="DE") echo('<option value="'.$element[1]->nom.'">'.$element[1]->de.'</option>');
						else echo "ERROR in LANG";			
					}
				?>
	
    	</td>
        <td> <input name="shirina_inputfield[0]" type="text" value="" size="5"/></td>
        <td> <input name="dlina_inputfield[0]" type="text" value="" size="6" /></td>
        <td> <select name="kromka_selectfield[0]">
	 			<option value="008">008</option>
                <option value="009">009</option>
		    </select>
        </td>
        <td><input name="sklad_inputfield[0]" type="text" size="2"/></td>
        <td><input nsme="labor_inputfield[0]" size="2" type="text" /></td>
		<td valign="top"><a href="#" onclick="return rmline(0);"/><? echo (transl_takestring($splitted_transl, "Удалить",$langchoosed));?></td>
    </tr>
</table>

</span>
<br />
<br />
</body>
</html>
